import * as client from './client'
import urlConfig from './urlConfig'
///获取店铺信息
/**
 * 请求参数
 */
export class StoreRst {
    /**
     * 需要的字段
     */
    public requireFields: string[];
    /**
     * 商家盖网号
     */
    public storeOwnerCode: string;
}
/**
 * 返回数据
 */
export class StoreRpn {
    //店铺uid
    public uid: string;
    //店铺名称
    public name: string;
    //店铺id
    public id: number;
    //状态(1：开放 2：关闭 3：异常 4：试用)
    public status: number;
}
/**
 * 店铺状态
 */
export enum storeStatus{
    open = 1,
    close,
    exception,
    tryUse
}
/**
 * 获取数据
 * @param rst 参数
 */
export async function exec(rst: StoreRst) {
    const data = await client.exec(urlConfig.store, rst);
    return JSON.parse(data) as client.RSM<StoreRpn>;
}
